"""
出租系统的主程序
"""
from  house_operation import  *
def main():
    """
    主函数
    :return:
    """
    while(True):
        main_menu()
        key = input("输入您的选择(1-5): ")
        if key in ["1","2","3","4","5","6"]:
            if key == "1":
                add_house()
            elif key == '2':
                find_house_by_id()
            elif key == '3':
                del_house()
            elif key == '4':
                list_house()
            elif key == '5':
                if exit_sys():
                    break

        else:
            print("错误输出,请重新输入")


if __name__ == "__main__":
    main()
    print("退出成功")